import { get, post, put, del } from '@/js/api/dataSource'
export default {
	company: {
		// 集团列表查询
		findAllCompanys () {
			return post({ url: '/archive/group/pageQuery', responseComplete: true })
		},
		// 启用停用集团
		updateEnables (id) {
			return put({ url: `/archive/group/updateEnables/${id}`, responseComplete: true })
		},
		getNextCode () {
			return get({ url: '/archive/group/getNextCode' })
		},
		saveOrUpdate () {
			return post({ url: '/archive/group/saveOrUpdate', responseComplete: true })
		},
		findGroupDetailById () {
			return get({ url: '/archive/group/findDetailByParam' })
		},
		// 批量删除集团
		deleteCompanyMulity () {
			return del({ url: '/archive/group/batchDelete', responseComplete: true })
		}
	}
}
